/**
 * 
 */
package com.hezhi.trafficcopsys.service;

import java.util.List;

import com.hezhi.framework.exception.APPException;
import com.hezhi.trafficcopsys.domain.User;

/**
 * @author wudo
 *
 */
public interface UserService {
	
	public User doLogin(User user) throws APPException;
	
	public User findUser(String username)throws APPException;
	
	public boolean isExistedUser(String username)throws APPException;
	
	public List<User> listUserByPage(int pageSize, int pageNo)throws APPException;
	
	public int addUser(User user)throws APPException;
	
	public int editUser(User user)throws APPException;
	
	public int delUsers(String[] usernames )throws APPException;
	
	public int getTotalSize() throws APPException;

}
